package cn.tedu.analyse.pojo.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class CommentsParam {
    @ApiModelProperty(value = "评论id")
    private Long id;
    @ApiModelProperty(value = "评论内容")
    private String content;
    @ApiModelProperty(value = "内容id")
    private Long articleId;
    @ApiModelProperty(value = "父级评论id")
    private Long parentId;
    @ApiModelProperty(value = "是否为顶级评论")
    private Boolean isTopLevel;
    @ApiModelProperty(value = "评论层级")
    private Integer level;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "评论时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "Asia/Shanghai")
    private Date createdAt;
}
